<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coverimgurl')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coverImgUrl" data-rule="required" class="form-control" name="row[coverImgUrl]" type="text" placeholder="填入临时素材mediaID（mediaID获取后，三天内有效）">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" placeholder="商品名称，最长14个汉字，1个汉字相当于2个字符">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pricetype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-priceType" data-rule="required" class="form-control selectpicker" name="row[priceType]">
                {foreach name="priceTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
            <p>价格类型，1：一口价，2：价格区间，3：显示折扣价；</p>
            <p>1：一口价，只需要传入price，price2不传；</p>
            <p>2：价格区间，price字段为左边界，price2字段为右边界，price和price2必传。</p>
            <p>3：折扣价，price字段为原价，price2字段为现价， price和price2必传</p>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">price:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" placeholder="数字，最多保留两位小数，单位元">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">price2:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price2" data-rule="" class="form-control" step="0.01" name="row[price2]" type="number" placeholder="数字，最多保留两位小数，单位元">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-url" data-rule="required" class="form-control" name="row[url]" type="text" placeholder="商品详情页的小程序路径">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
